// 展开操作符

// 展开数组作为函数参数-------------------------
const arr = ['foo', 'bar', 'baz']
console.log(...arr)
console.log(Math.max(...[1, 2, 3]))

// 浅拷贝数组或对象
const source = {a: 1, b: 2}
const target = {...source}
console.log(target)

const sourceArr = [1, 2, 3]
const targetArr = [...sourceArr]
console.log(targetArr)
